//
//  FSCClassTitleCell.swift
//  FamiliesSchoolConnection
//
//  Created by 花花蔡 on 2016/12/28.
//  Copyright © 2016年 com.HuaHuaCai. All rights reserved.
//

import UIKit

class FSCClassTitleCell: UICollectionViewCell {
    
   
    //全局属性
    var titleL = UILabel()
    
    var model:FSCClassTableModel? {
        
        didSet {
            titleL.text = model?.courseName
        }
    }
    
    
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        
        //添加一个label
        titleL.frame = contentView.bounds
        titleL.text = "语文"
        titleL.textAlignment = .center
        titleL.font = UIFont.systemFont(ofSize: 15)
        titleL.textColor = UIColor.black
        contentView.addSubview(titleL)
    }
    
    required init?(coder aDecoder: NSCoder) {
        super.init(coder: aDecoder)
        
    }
    
}
